SubtleCrypto

external interface SubtleCrypto

Functions

Link copied to clipboard
abstract fun decrypt(algorithm: Json, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>
Link copied to clipboard
abstract fun deriveBits(algorithm: Json, baseKey: CryptoKey, length: Number): Promise<ArrayBuffer>
Link copied to clipboard
abstract fun digest(algorithm: String, data: ArrayBuffer): Promise<ArrayBuffer>
Link copied to clipboard
abstract fun encrypt(algorithm: Json, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>
Link copied to clipboard
abstract fun importKey(format: String, keyData: ArrayBuffer, algorithm: String, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
abstract fun importKey(format: String, keyData: ArrayBuffer, algorithm: Json, extractable: Boolean, keyUsages: Array<String>): Promise<CryptoKey>
Link copied to clipboard
abstract fun sign(algorithm: String, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>
abstract fun sign(algorithm: Json, key: CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer>